#!/bin/bash

if [ -f "/etc/project.conf" ]
then
	source /etc/project.conf 
fi

echo "[${USER}][`date`] - 运行 $0 $@" >> ${LOG_FILE}
echo "[${USER}][`date`] - start app list:${app_list}" >> ${LOG_FILE}

for(( i=0;i<${app_num};i++))
do
	app=${app_list[i]}
	app_dir=${prj_app_path}/${app_device_folder_list[i]}
	echo "[${USER}][`date`] - startup app :${app_dir}/${app}" >> ${LOG_FILE}
	cd ${app_dir}
	./guard_${app}.sh &

done
